package com.ourteam.workspace.dao;

import net.dao.IDataAccessInterface;

/**
 * Template Name : DAO接口模板 Template Version : 1 Template Last Modfiy Date : Thu Sep 21 11:14:14 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:25 Warning ! This file will be overwrite when
 * regenerate !
 */
public interface IBaseWorkspaceMemberDAO
    extends IDataAccessInterface<WorkspaceMember, WorkspaceMemberDAOQueryBean> {

  /** Mapped Entity Name */
  static final String EntityName = "WORKSPACE_MEMBER";

  /** Mapped Field ID */
  static final String Id = "WORKSPACE_MEMBER.ID";

  /** Mapped Field SYS_USER_ID */
  static final String SysUserId = "WORKSPACE_MEMBER.SYS_USER_ID";

  /** Mapped Field SCM_ACCOUNT */
  static final String ScmAccount = "WORKSPACE_MEMBER.SCM_ACCOUNT";

  /** Mapped Field ROLE */
  static final String Role = "WORKSPACE_MEMBER.ROLE";

  /** Mapped Field LAST_CHANGE_CODE_LINE */
  static final String LastChangeCodeLine = "WORKSPACE_MEMBER.LAST_CHANGE_CODE_LINE";

  /** Mapped Field STATUS */
  static final String Status = "WORKSPACE_MEMBER.STATUS";

  /** Mapped Field REMARKS */
  static final String Remarks = "WORKSPACE_MEMBER.REMARKS";

  /** Mapped Field LAST_ACTIVITY_TIME */
  static final String LastActivityTime = "WORKSPACE_MEMBER.LAST_ACTIVITY_TIME";

  /** Mapped Field WORKSPACE_ID */
  static final String WorkspaceId = "WORKSPACE_MEMBER.WORKSPACE_ID";

  /** Mapped Attribute userName */
  static final String UserName =
      org.apache.commons.lang.StringUtils.replace(
          com.ourteam.system.dao.ISysUserDAO.UserName,
          com.ourteam.system.dao.ISysUserDAO.EntityName + ".",
          "SYS_USER.");

  public static interface DataProperty {

    /** Attribute id */
    static final String Id = "id";

    /** Attribute sysUserId */
    static final String SysUserId = "sysUserId";

    /** Attribute scmAccount */
    static final String ScmAccount = "scmAccount";

    /** Attribute role */
    static final String Role = "role";

    /** Attribute lastActivityTime */
    static final String LastActivityTime = "lastActivityTime";

    /** Attribute lastChangeCodeLine */
    static final String LastChangeCodeLine = "lastChangeCodeLine";

    /** Attribute status */
    static final String Status = "status";

    /** Attribute remarks */
    static final String Remarks = "remarks";

    /** Attribute userName */
    static final String UserName = "userName";

    /** Attribute workspaceId */
    static final String WorkspaceId = "workspaceId";
  }

  public static interface _DataObjectProperty extends DataProperty {}

  /**
   * Delete Data
   *
   * @param final long id
   * @throws Exception
   */
  void delete(final long id) throws Exception;
  /**
   * Find Data By Primary Key
   *
   * @param final long id
   * @throws Exception
   */
  WorkspaceMember findById(final long id) throws Exception;
}
